﻿using System.ComponentModel.DataAnnotations;
using WMSpublic;

namespace Customer.Domain
{
    /// <summary>
    /// 应付管理
    /// </summary>
    public class Accounts : Audit
    {
        /// <summary>
        /// 应付管理id
        /// </summary>
        [Key]
        public int AccountsId { get; set; }

        /// <summary>
        /// 流水号
        /// </summary>
        public string? AccountsNumber { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string? AccountsName { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public int? FinanceTypeId { get; set; }

        /// <summary>
        /// 最后付款日
        /// </summary>
        public DateTime Lastpaydate { get; set; }

        /// <summary>
        /// 付款方
        /// </summary>
        public string? Payer { get; set; }

        /// <summary>
        /// 收款方
        /// </summary>
        public string? Beneficiary { get; set; }

        /// <summary>
        /// 应付金额
        /// </summary>
        public decimal AccountsAmount { get; set; }

        /// <summary>
        /// 付款次数
        /// </summary>
        public int? PaymentNum { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int? ReceivableState { get; set; }

        /// <summary>
        /// 剩余金额
        /// </summary>
        public decimal RemaineAmount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? RRremark { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public int? ApprovalStatus { get; set; }

        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }
        /// <summary>
        /// 付款金额
        /// </summary>
        public decimal PayMoney { get; set; }
    }
    public class AccountsPage
    {
        public int SumCount { get; set; }
        public int LastPage { get; set; }
        public List<Accounts> list { get; set; }
    }
}
